import system from "@/assets/system.svg"

/** 系统管理 */
export default [
  {
    path: "/system-management",
    redirect: "/user/index",
    meta: {
      title: "系统管理",
      icon: system,
      activeIcon: system,
      sort: 13
    },
    children: [
      {
        path: "/user/index",
        name: "User",
        component: () => import("@/views/user/index.vue"),
        meta: {
          title: "用户管理",
          icon: "",
          permission: [
            {
              path: "insert",
              label: "新增"
            },
            {
              path: "update",
              label: "修改"
            },
          ]
        },
      },
      {
        path: "/role/index",
        name: "Role",
        component: () => import("@/views/role/index.vue"),
        meta: {
          title: "角色管理",
          icon: "",
          permission: [
            {
              path: "insert",
              label: "新增"
            },
            {
              path: "update",
              label: "修改"
            },
            {
              path: "assignPermission",
              label: "分配权限"
            },
          ]
        },
      },
      {
        path: "/account/index",
        name: "Account",
        component: () => import("@/views/account/index.vue"),
        meta: {
          title: "账号管理",
          icon: "",
        },
      },
      {
        path: "/system-information/index",
        name: "SystemInformation",
        component: () => import("@/views/system-information/index.vue"),
        // component: () => import("@/views/operation-log/index.vue"),
        meta: {
          title: "公告管理",
          icon: "",
          permission: [
            {
              path: "insert",
              label: "新增"
            },
            {
              path: "update",
              label: "修改"
            },
          ]
        },
      },
      {
        path: "/operation-log/index",
        name: "OperationLog",
        component: () => import("@/views/operation-log/index.vue"),
        meta: {
          title: "操作日志",
          icon: "",
          permission: []
        },
      },
    ],
  },
];
